#include<iostream>
using namespace std;
template <class x> float min(x &a,x &b)
{
x temp;
if (a<b)
temp=a;
else
temp=b;
return temp;
}
template <class x> float max(x &a,x &b)
{
x temp;
if (a>b)
temp=a;
else
temp=b;
return temp;
}
int main()
{
int i=10,j=20;
float x=1.1,y=2.2;
cout<<min(i,j)<<"\n";
cout<<max(x,y)<<"\n";
cout<<max('a','z')<<"\n";
cout<<min('A','z')<<"\n";
return 0;
}

